import request from '@/utils/request'

// 查询故障申报列表
export function listFault(query) {
  return request({
    url: '/mc/fault/list',
    method: 'get',
    params: query
  })
}

// 查询故障申报详细
export function getFault(id) {
  return request({
    url: '/mc/fault/' + id,
    method: 'get'
  })
}

// 修改故障申报
export function updateFault(data) {
  return request({
    url: '/mc/fault',
    method: 'put',
    data: data
  })
}

// 删除故障申报
export function delFault(id) {
  return request({
    url: '/mc/fault/' + id,
    method: 'delete'
  })
}
